projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449a17b
)
TextView—Plug a memory leak
author
Daniel Boles
<dboles@src.gnome.org>
Wed, 22 Feb 2017 21:24:45 +0000
(21:24 +0000)
committer
Daniel Boles
<dboles@src.gnome.org>
Wed, 22 Feb 2017 21:27:59 +0000
(21:27 +0000)
Thanks to Nelson Benitez for pointing this out.
https://bugzilla.gnome.org/show_bug.cgi?id=136059
gtk/gtktextview.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextview.c
b/gtk/gtktextview.c
index 1ab5f477e88822b9e7b0a78061d5d79395b238e3..1e937385370c621e969b79f4cf80e9ad6294045f 100644
(file)
--- a/
gtk/gtktextview.c
+++ b/
gtk/gtktextview.c
@@
-6351,6
+6351,8
@@
iter_line_is_rtl (GtkTextIter *iter, GtkTextLayout *layout)
const gchar *text = pango_layout_get_text (display->layout);
PangoDirection pango_dir = pango_find_base_dir (text, -1);
+ gtk_text_layout_free_line_display (layout, display);
+
return pango_dir == PANGO_DIRECTION_RTL;
}